<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>static与private区别</title>
  </head>
  <body></body>
  <script>
    class User {
      #data = "sjsjsjsjs";
      static site = "houdunren.com";
      constructor(name) {
        this.name = name;
      }
      static show3() {
        console.log("static.show");
      }

      show4() {
        console.log("User.show");
      }
    }

    class Admin extends User {
      #host = "www.baidu.com";
      static age = "18";
      constructor(url) {
        super();
        this.url = url;
      }
      static show1() {
        console.log("static.show");
      }

      show2() {
        console.log("Admin.show");
      }
    }
    let hd = new Admin("hdcms.com");
    console.dir(hd);

    console.dir(Admin);
    console.log(Admin.#host);
    console.dir(User);
  </script>
</html>
